export function findParentNote (target: HTMLElement, className: string) {
    while (target = target.parentNode as HTMLElement) {
        if (target.className === className) {
            return target;
        }
    }
}

export function createItem (tarName: string, className: string, todoView: string) {
    const OItem: HTMLElement = document.createElement(tarName);
    OItem.className = className;
    OItem.innerHTML = todoView;

    return OItem;
}